<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>第三事业部订餐系统</title>
    <meta name="description" content="Flat UI Kit Free is a Twitter Bootstrap Framework design and Theme, this responsive framework includes a PSD and HTML version."/>

    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">

    <!-- Loading Bootstrap -->
    <link href="/dinner/Public/index/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="/dinner/Public/index/css/flat-ui.css" rel="stylesheet">
<!--     <link href="/dinner/Public/index/css/demo.css" rel="stylesheet"> -->

    <link rel="shortcut icon" href="/dinner/Public/index/images/icons/png/meal.png">

    <style type="text/css">
      body {
        padding-top: 70px;
      }
      </style>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <form class="form-signin" role="form" action="<?php echo U('Index/bookHandle');?>" method='post' id="form">
        <!-- Fixed navbar -->
        <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">点餐系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>
            <?php if(is_array($nav)): foreach($nav as $key=>$nav): if($nav["id"] == $typeId ): ?><li><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li>
              <?php else: ?>
                <li><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li><?php endif; endforeach; endif; ?>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo U('Index/about');?>">关于</a></li>
            <li class="active"><a href="<?php echo U('Index/check');?>">所有人的订单</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo ($userName); ?>'s 个人中心<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('Index/history');?>">历史记录</a></li>
                <li><a href="<?php echo U('Index/myorder');?>">我的订单</a></li>
<!--                 <li><a href="#">Something else here</a></li> -->
                <li role="separator" class="divider"></li>
<!--                 <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li> -->
                <li><a href="<?php echo U('Login/logoutHandle');?>">退出登录</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
    <div class="container">
      <div class="row">
        <div class="span3">
          <div class="tile">
            <div class="row" style="margin-bottom:20px;">
              <h3 class="tile-title">未订人员名单</h3>
            </div>
            <div class="row">
              <?php if(is_array($restUser)): foreach($restUser as $key=>$restUser): ?><div class="col-sm-2">
                <font color="#e74c3c"><?php echo ($restUser); ?></font>
              </div><?php endforeach; endif; ?>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="row">
        <div class="span3">
          <div class="tile">
            <div class="row" style="margin-bottom:20px;">
              <h3 class="tile-title">已订人员名单</h3>
            </div>
            <div class="row">
              <?php if(is_array($orderUser)): foreach($orderUser as $key=>$orderUser): ?><div class="col-sm-2">
                <font color="#e74c3c"><?php echo ($orderUser); ?></font>
              </div><?php endforeach; endif; ?>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="row">
        <div class="span3">
          <div class="tile">
            <div class="row" style="margin-bottom:20px;">
              <h3 class="tile-title">总确认菜单</h3>
            </div>
            <div class="row">
              <table class="table table-striped">
                <thead>
                  <tr>
                    <th style="text-align:center;color:#1abc9c;font-size:22px;">名称</th>
                    <th style="text-align:center;color:#1abc9c;font-size:22px;">名单</th>
                    <th style="text-align:center;color:#1abc9c;font-size:22px;">数量</th>
                  </tr>
                </thead>
                <tbody>
                  <?php if(is_array($meal)): foreach($meal as $key=>$meal): ?><tr>
                    <td><?php echo ($meal["name"]); ?>-<?php echo ($meal["price"]); ?>元</td>
                    <td><?php echo ($meal["user_string"]); ?></td>
                    <td><?php echo ($meal["num"]); ?></td>
                  </tr><?php endforeach; endif; ?>
                  <tr>
                    <td>-------</td>
                    <td><font color="#e74c3c">总数</font></td>
                    <td><?php echo ($totalNum); ?>个</td>
                  </tr>
                  <tr>
                    <td>-------</td>
                    <td><font color="#e74c3c">总价(不含外卖费)</font></td>
                    <td><?php echo ($totalSum); ?>元</td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- Load JS here for greater good =============================-->
    <script src="/dinner/Public/index/js/jquery-1.8.3.min.js"></script>
    <script src="/dinner/Public/index/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="/dinner/Public/index/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-select.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-switch.js"></script>
    <script src="/dinner/Public/index/js/flatui-checkbox.js"></script>
    <script src="/dinner/Public/index/js/flatui-radio.js"></script>
    <script src="/dinner/Public/index/js/jquery.tagsinput.js"></script>
    <script src="/dinner/Public/index/js/jquery.placeholder.js"></script>
    <script src="/dinner/Public/index/js/jquery.stacktable.js"></script>
    <script src="http://vjs.zencdn.net/4.3/video.js"></script>
    <script src="/dinner/Public/index/js/application.js"></script>
  </body>
</html>